.SUFFIXES : .x .o .c .s

BUILD_ROOT=/usr/local/arm_tools
lib1=${BUILD_ROOT}/lib/gcc-lib/arm-elf/3.0
lib=${BUILD_ROOT}/arm-elf/lib

include=${BUILD_ROOT}/arm-elf/inc/
.SUFFIXES : .x .o .c .s

ROOT = /usr/local/arm_tools
LIB = $(ROOT)/lib/gcc-lib/arm-elf/3.0
LIB1 =$(ROOT)/arm-elf/lib
INC :=$(ROOT)/arm-elf/inc

CC=arm-elf-gcc #-I$(INC) -Wl,-elf2flt
AR=arm-elf-ar

WEC_LDFLAGS=-L$(LIB) -L$(LIB1)

LIBS= -lc -lgcc -lc

TARGET = libobd.a
SRCS := obdstn1100.o procmsg.o uart.o
all:
	#$(CC) $(WEC_LDFLAGS) $(SRCS) -o $(TARGET) $(LIBS)
	$(CC) -c  obdstn1100.c procmsg.c uart.c
	$(AR) rcu $(TARGET) $(SRCS)
	mv $(TARGET) ../lib
clean :
	#rm -rf obdstn1100.o libobdstn1100.so
	rm -f *.o 
	rm -f *.a
	rm -f *.so
	rm -f *.x 
	rm -f *.flat
	rm -f *.map
	rm -f temp
	rm -f *.img
	rm -f $(TARGET)	
	rm -f *.gdb
